dofile ("libKeyboard.lua")

keyboard = Keyboard.new (5, 5)

while not Keys.held.Start do
	
	Controls.read()
	
	startDrawing()
		
		keyboard:draw ()
		
		local text = keyboard:getText ()
		
		screen.drawTextBox (SCREEN_UP, 5, 5, SCREEN_WIDTH-5, SCREEN_HEIGHT-5, text.."|")
		
		local col = tostring (keyboard:getColumn ())
		local line = tostring (keyboard:getLine ())
		
		screen.print (SCREEN_DOWN, 5, 170, "Column : "..col)
		screen.print (SCREEN_DOWN, 5, 181, "Line : "..line)
		
	stopDrawing()
end

keyboard:clear ()

collectgarbage()
